package com.naiterui.ehp.bs.payment.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.naiterui.ehp.bp.support.security.InterceptorAddition;
import com.naiterui.ehp.bp.support.security.PaymentLoginInterceptor;

@Configuration
public class InterceptorConfig {

    @Bean
    public InterceptorAddition loginInterceptor() {
        return InterceptorAddition.build(new PaymentLoginInterceptor()).addPathPatterns("/**");
    }

}
